package servlet;

public class IsLoginServlet extends BaseServlet{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8538076142868886263L;
	
	public void service() throws Exception{
		String uid = (String) request.getSession().getAttribute("uid");
		if(uid!=null){
			response.getWriter().write("{\"isLogin\":true,\"success\":true,\"msg\":\"你已登陆\"}");
		}else{
			response.getWriter().write("{\"isLogin\":false,\"success\":false,\"msg\":\"你还未登陆\"}");
		}
	}
}
